export function toPage(total, pageSize, pageNum) {
    let limit = pageSize * (pageNum - 1)
    return {
        total: total,
        pageSize: parseInt(pageSize),
        pageNum: parseInt(pageNum),
        limit: limit,
        hasVal: total > limit,
    }
}